<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1" name="viewport; charset=utf-8">
<meta content="NONE,NOARCHIVE" name="robots">
<meta content="false" name="turbo-prefetch">
<%= csrf_meta_tag %>
<% case RailsAdmin::config.asset_source
   when :webpacker %>
  <%= stylesheet_pack_tag "rails_admin", data: {'turbo-track': 'reload'} %>
  <%= javascript_pack_tag "rails_admin", defer: true, data: {'turbo-track': 'reload'} %>
<% when :sprockets %>
  <% handle_asset_dependency_error do %>
    <%= stylesheet_link_tag "rails_admin/application.css", media: :all, data: {'turbo-track': 'reload'} %>
    <%= javascript_include_tag "rails_admin/application.js", defer: true, data: {'turbo-track': 'reload'} %>
  <% end %>
<% when :vite %>
  <%= vite_javascript_tag "rails_admin", defer: true, data: {'turbo-track': 'reload'} %>
<% when :webpack %>
  <%= stylesheet_link_tag "rails_admin.css", media: :all, data: {'turbo-track': 'reload'} %>
  <%= javascript_include_tag "rails_admin.js", defer: true, data: {'turbo-track': 'reload'} %>
<% when :importmap %>
  <%= stylesheet_link_tag "rails_admin.css", media: :all, data: {'turbo-track': 'reload'} %>
  <%= javascript_inline_importmap_tag(RailsAdmin::Engine.importmap.to_json(resolver: self)) %>
  <%= javascript_importmap_module_preload_tags(RailsAdmin::Engine.importmap) %>
  <%= javascript_importmap_shim_nonce_configuration_tag if respond_to? :javascript_importmap_shim_nonce_configuration_tag %>
  <%= javascript_importmap_shim_tag if respond_to? :javascript_importmap_shim_tag %>
  <%= # Preload jQuery and make it global, unless jQuery UI fails to initialize
      tag.script "import jQuery from 'jquery'; window.jQuery = jQuery;".html_safe, type: "module" %>
  <%= javascript_import_module_tag 'rails_admin' %>
<% else
     raise "Unknown asset_source: #{RailsAdmin::config.asset_source}"
   end %>
